package entity;

import java.io.Serializable;

/**
 * 微博的实体类
 */
public class Blog implements Serializable {
    private static final long serialVersionUID = -4305295276308369148L;
    private int id; //微博编号
    private int uid; //用户id
    private String content; //发布内容
    private String images;  //图片
    private String time; //发布时间
    private int state; //状态：1.原创  2.转发
    private int fromBid;  //如果为转发的话，那么是转发哪一条的微博id

    //发布微博的用户
    private User user=new User();

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Blog(){}

    public Blog(int id, int uid, String content, String images, String time, int state, int fromBid) {
        this.id = id;
        this.uid = uid;
        this.content = content;
        this.images = images;
        this.time = time;
        this.state = state;
        this.fromBid = fromBid;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getFromBid() {
        return fromBid;
    }

    public void setFromBid(int fromBid) {
        this.fromBid = fromBid;
    }
}
